package com.itheima.test;

import java.util.ArrayList;

public class StudentManager {
    private ArrayList<Student> stus =new ArrayList<>();
    private StudentOperator studentOperator =new StudentOperatorImpl1();

    public StudentManager(){
        stus.add(new Student("关羽",'男',88.9));
        stus.add(new Student("张飞",'男',82.3));
        stus.add(new Student("马超",'男',85.0));
        stus.add(new Student("黄忠",'男',86.3));
        stus.add(new Student("赵云",'男',90.6));
        stus.add(new Student("关银屏",'女',69.9));
    }

    public void printAll(){
        studentOperator.printAll(stus);
    }

    public void printAvgScore(){
        studentOperator.printAvgScore(stus);
    }
}
